{__NOLAYOUT__}<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="viewport"
          content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <title>跳转提示</title>
    <link type="text/css" href="/static/weui/css/weui.css" rel="stylesheet"/>

    <style type="text/css">

    </style>
</head>
<body>
<div class="system-message">

    <div class="container" id="container">
        <div class="page js_show">
            <div class="weui-msg">
                <?php switch ($code) {?>
                <?php case 1:?>
                <div class="weui-msg__icon-area"><i class="weui-icon-success weui-icon_msg"></i></div>
                <div class="weui-msg__text-area">
                <h2 class="weui-msg__title">操作成功</h2>
                <p class="weui-msg__desc"><?php echo(strip_tags($msg));?></p>
                </div>

                <?php break;?>
                <?php case 0:?>

                <div class="weui-msg__icon-area"><i class="weui-icon-warn weui-icon_msg"></i></div>
                <div class="weui-msg__text-area">
                <h2 class="weui-msg__title">操作失败</h2>
                <p class="weui-msg__desc"><?php echo(strip_tags($msg));?></p>
                </div>
                </div>

                <?php break;?>
                <?php } ?>

                <div class="weui-msg__tips-area">
                    <p class="weui-msg__tips" style="text-align: center">
                        页面自动 <a id="href" href="<?php echo($url);?>">跳转</a> 等待时间： <b id="wait"><?php echo($wait);?></b>
                    </p>


                </div>

                <div class="weui-msg__tips-area">
                </div>
                <div class="weui-msg__extra-area">
                    <div class="weui-footer">
                        <p class="weui-footer__text">Copyright &copy; {:date('Y')} {:config('company_title')}</p>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script type="text/javascript">
        (function () {
            var wait = document.getElementById('wait'),
                href = document.getElementById('href').href;
            var interval = setInterval(function () {
                var time = --wait.innerHTML;
                if (time <= 0) {
                    location.href = href;
                    clearInterval(interval);
                }
                ;
            }, 1000);
        })();
    </script>
</body>
</html>
